package com.youlai.boot.system.model.entity;

import lombok.*;

import java.time.LocalDateTime;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.youlai.boot.common.base.BaseEntity;

/**
 * 交易记录表实体对象
 *
 * @author youlaitech
 * @since 2025-02-27 15:58
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("gb_transaction")
public class Transaction extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 汇款方
     */
    private Long fromUser;

    /**
     * 汇款方
     */
    private String  fromUserStr;
    /**
     * 收款方
     */
    private Long toUser;
    /**
     * 收款方
     */
    private String toUserStr;
    /**
     * 关联垃圾主表
     */
    private Long requestId;
    /**
     * 交易金额
     */
    private BigDecimal amount;
    private Long createBy;
    private Long updateBy;
    private Integer isDeleted;
}
